-- GENERATED SPELL FOR [Firebrand Dreadweaver] --


function spell0_9263(pUnit, Event) --@Curse of the Firebrand,n/a--
pUnit:FullCastSpellOnTarget(16071,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9263', 2000, 1)
end

function spell1_9263(pUnit, Event) --@Mark of Flames,n/a--
pUnit:FullCastSpellOnTarget(15128,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9263', 1000, 1)
end

function spell2_9263(pUnit, Event) --@Plague Cloud,Self--
pUnit:FullCastSpellOnTarget(15728,pUnit)
pUnit:RegisterEvent('Sorts_9263', 2500, 1)
end

function spell3_9263(pUnit, Event) --@Remove Curse,n/a--
pUnit:FullCastSpellOnTarget(15729,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9263', 631, 1)
end

function Sorts_9263(pUnit, Event)
local choix_sorts_9263 = math.random(0, 3)
if choix_sorts_9263 == 0 then
pUnit:RegisterEvent('spell0_9263', 1, 1)
end
if choix_sorts_9263 == 1 then
pUnit:RegisterEvent('spell1_9263', 1, 1)
end
if choix_sorts_9263 == 2 then
pUnit:RegisterEvent('spell2_9263', 1, 1)
end
if choix_sorts_9263 == 3 then
pUnit:RegisterEvent('spell3_9263', 1, 1)
end
end

function mob9263_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_9263', math.random(1500, 3000), 1)
end

function mob9263_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9263_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9263_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(9263, 1, 'mob9263_Action')
RegisterUnitEvent(9263, 2, 'mob9263_Leave')
RegisterUnitEvent(9263, 3, 'mob9263_Kill')
RegisterUnitEvent(9263, 4, 'mob9263_Die')
